home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / rocketcar2.swf / scripts / frame_14 / PlaceObject2_448_370 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2008-09-24  |  773 b   |  38 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.paused)
  3.    {
  4.       return undefined;
  5.    }
  6.    if(_root.car.dead)
  7.    {
  8.       _visible = false;
  9.       return undefined;
  10.    }
  11.    if(!_root.car.onfloor)
  12.    {
  13.       if(Key.isDown(39))
  14.       {
  15.          _visible = true;
  16.          if(!sound)
  17.          {
  18.             if(_root.sound)
  19.             {
  20.                _root.steamSide.start(0,99999);
  21.                sound = true;
  22.             }
  23.          }
  24.       }
  25.    }
  26.    if(!Key.isDown(39) or _root.car.onfloor or _root.fake._rotation > 20 or _root.fake._rotation < -20)
  27.    {
  28.       _visible = false;
  29.    }
  30.    if(!Key.isDown(39) or _root.car.onfloor)
  31.    {
  32.       sound = false;
  33.       _root.steamSide.stop();
  34.    }
  35.    _X = _root.fake._x - 30;
  36.    _Y = _root.fake._y - 14;
  37. }
  38.